package oa.service;

import java.io.InputStream;
import java.util.Collection;

import oa.domain.page.PageBean;
import oa.domain.workflow.FormTemplate;
import oa.util.HQLHelper;

public interface FormTemplateService {

	public Collection<FormTemplate> getAllFormtemplate();
	
	public FormTemplate getFormTemplateById(Long ftid);
	
	public void saveFormtemplate(FormTemplate formTemplate);
	
	public void updateFormTemplate(FormTemplate formTemplate);
	
	public void deleteFormTemplate(Long ftid);
	
	public InputStream download(Long ftid) throws Exception;

	public PageBean getPageBean(HQLHelper hh, int currentPage);
}
